package cn.gson.fengboot.model.dao;


import cn.gson.fengboot.model.pojos.QdepFrom;
import cn.gson.fengboot.model.pojos.QroleFrom;
import cn.gson.fengboot.model.pojos.Qrolesmenu;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface DroleDao extends CrudRepository<QroleFrom,Integer>{

    @Query(value="select * from qrole_from r where r.role_upid = ?1",nativeQuery = true)
    List<QroleFrom> findByRoleUpId(Integer roleUpId);
}
